package com.xiannimei.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.xiannimei.service.MemberService;

@Controller
public class IndexController {

    final static Logger log = LoggerFactory.getLogger(IndexController.class);

    @Autowired
    private MemberService memberService;

    @RequestMapping(value = {"/", "/index.htm"})
    public String index(Model model) {
        System.out.println("userService:" + memberService);
        model.addAttribute("info", "hello world,闲你妹");
        return "index";
    }
    
    @RequestMapping(value = {"/test"})
    public String aaa(Model model) {
        model.addAttribute("aaa");
        return "test";
    }

}
